# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm ) 

SET(CMAKE_SYSTEM_VERSION 1)

SET(SYSTEM_LINK_LIB
    -lpthread
    -lrt
    -ldl
    -lm
)
SET(DO_FLAG -DO2)
SET(O_FLAG -O2)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${O_FLAG} -fPIC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)